#!/bin/sh
name=$1
docker stop  ${name}
docker start ${name}
docker exec  -i ${name} /sbin/sshd
docker exec  -i ${name} redis-server /etc/redis.conf &
docker exec  -i ${name} sleep 3
docker exec  -i ${name} mysqld_safe --datadir='/var/lib/mysql' &
docker exec  -i ${name} sleep 3
